import request from "../../request";
import { type R, type DeepRequired } from "../../interface";
import { type AxiosRequestConfig } from "axios";

/**
 * 根据 ID 获取 Tags 信息
 * /tags/{id}
 */
export function getTagsById(params: GetTagsByIdParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<R>>(`/tags/${params.id}`, config);
}

export interface GetTagsByIdParams {
    id: number;
}
